import 'package:library_base/entities/bluetooth_device_entity.dart';
import 'package:library_base/entities/generated/json/base/json_convert_content.dart';

BluetoothDeviceEntity $BluetoothDeviceEntityFromJson(Map<String, dynamic> json) {
  final BluetoothDeviceEntity shipperEntity = BluetoothDeviceEntity();

  final String? name = jsonConvert.convert<String>(json['name']);
  shipperEntity.name = name;

  final String? address = jsonConvert.convert<String>(json['address']);
  if (address != null) {
    shipperEntity.address = address;
  }
  return shipperEntity;
}

Map<String, dynamic> $BluetoothDeviceEntityToJson(BluetoothDeviceEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['name'] = entity.name;
  data['address'] = entity.address;
  return data;
}
